package com.example.librarymanagementproject2.service;


import com.example.librarymanagementproject2.model.dto.LoginResult;
import com.example.librarymanagementproject2.model.dto.UserRegisterDTO;

/**
 * @InterfaceName LoginService
 * @Description TODO
 * @Author Kx
 * @Date 2025/10/10 20:37
 * @Version 1.0
 */
public interface LoginService {
    /**
     * @author: kx
     * @date: 2025/9/29 11:29
     * @param userRegisterDTO : 存储用户信息和验证码的传输对象
     * @description: 用户注册
     */
    void addUser(UserRegisterDTO userRegisterDTO);

    /**
     * @author: kx
     * @date: 2025/9/29 15:43
     * @param username : 用户名
     * @param password : 密码
     * @description: 用户登录
     */
    LoginResult login(String username, String password);
}
